From: Olivier Fourdan Date: Wed, 19 Jan 2022 09:24:34 +0000 (+0100) Subject: main: Raise the NOFILE limit if a Wayland compositor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~103 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b8a32ca71ebfe5846304e2f78538c29c58109ea;p=gnome-shell.git main: Raise the NOFILE limit if a Wayland compositor When being run as a Wayland compositor, raise the NOFILE limit to mitigate the risk of running out of file descriptors. Part-of: --- diff --git a/src/main.c b/src/main.c index 3cd9e10a5..03708fc8f 100644 --- a/src/main.c +++ b/src/main.c @@ -554,6 +554,9 @@ main (int argc, char **argv) shell_profiler_init (); + if (meta_context_get_compositor_type (context) == META_COMPOSITOR_TYPE_WAYLAND) + meta_context_raise_rlimit_nofile (context, NULL); + if (!meta_context_start (context, &error)) { g_printerr ("GNOME Shell failed to start: %s", error->message);